import type { IllnessTime } from '@/enum'
import { flagOptions, timeOptions } from './constants'

export const getConsultFlagText = (value?: 0 | 1) =>
  flagOptions.find((item) => item.value === value)?.label

export const getIllnessTimeText = (value?: IllnessTime) =>
  timeOptions.find((item) => item.value === value)?.label
